package com.bkitmobile.kesu.android.GUI;

import com.bkitmobile.kesu.android.ClassInfo.UserConfig;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.TabHost;

public class Setting extends TabActivity{
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		TabHost tabSetting =getTabHost();
		UserConfig uConfig = (UserConfig) getIntent().getExtras().getSerializable("config");
		
		Intent gSetting = new Intent(this, SettingGeneral.class);
		gSetting.putExtra("config", uConfig);
		Intent sSetting = new Intent(this, SettingState.class);
		sSetting.putExtra("config", uConfig);
		Intent pSetting = new Intent(this, SettingProfile.class);
		tabSetting.addTab(tabSetting.newTabSpec("one").setIndicator(getString(R.string.setting_general)).
					setContent(gSetting));
		tabSetting.addTab(tabSetting.newTabSpec("two").setIndicator(getString(R.string.setting_state)).
					setContent(sSetting));
		tabSetting.addTab(tabSetting.newTabSpec("three").setIndicator(getString(R.string.setting_profile)).
					setContent(pSetting));
	}
	

}
